<template>
  <div class="idShop_apply_enterprise_record">
    <c-title :hide="false" text="企业认证记录"></c-title>
    <div class="listBox" v-for="(item, index) in list" :key="index">
      <div class="list">
        <div class="left">
          <div class="left_t">{{ item.verify_code }}</div>
          <div class="left_b">{{ item.created_at }}</div>
        </div>
        <div class="right" style="color: #F15353;">{{ item.review_status_desc }}</div>
      </div>
      <div class="rejectBox" v-if="item.review_status == '-1'">原因：{{ item.reject_reason }}</div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: []
    };
  },
  activated() {
    this.getData();
  },
  methods: {
    async getData() {
      let { data, result, msg } = await $http.post("plugin.project-party.frontend.controllers.apply.companyApplyLog", {}, ".");
      if (result) {
        this.list = data;
      } else {
        this.$toast(msg);
      }
    }
  }
};
</script>
<style lang="scss" scoped>
.listBox {
  margin: 0.63rem 0.75rem;
  padding: 0.94rem 0 0.75rem 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
  .rejectBox {
    padding: 0.75rem 1.63rem;
    font-size: 0.81rem;
    color: #6e6e79;
    text-align: left;
  }
  .list {
    padding: 0 0.74rem;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    .right {
      flex-shrink: 0;
    }
    .left {
      flex: 1;
      text-align: left;
      .left_t {
        margin-bottom: 0.59rem;
        font-size: 0.88rem;
        font-weight: 500;
      }
      .left_b {
        font-size: 0.81rem;
        color: #6e6e79;
      }
    }
    .right {
      color: #f96d20;
      font-size: 0.81rem;
    }
  }
}
</style>
